package com.bawei.module_apps.net

import com.bawei.library_mvi.IState
import com.bw.apps.net.entity.AppMultipleEntity
import java.io.File

/**
 * @Author : 
 * @Time : On 2023/7/21 10:21
 * @Description : NetAppState
 */
sealed class NetAppState:IState{
    //网络请求数据
    object Init:NetAppState()
    object ErrorState:NetAppState()
    data class SucceedState(val list:MutableList<AppMultipleEntity>):NetAppState()
    //下载
    object Start:NetAppState() //开始下载
    data class Progress(val progress: Int) : NetAppState() //下载进度
    data class Err(val t: Throwable) : NetAppState() //下载失败
    data class Done(val file: File) : NetAppState()//下载完成


}
